package lookas.csvparser.converters;

import org.apache.commons.beanutils.Converter;

import com.wolainfo.simulator.model.tfi.Currency;

public class CurrencyConverter implements Converter{

    public Currency match(String s){
        return Currency.valueOf(s);
    }

    @SuppressWarnings("unchecked")
    public Object convert(Class type, Object value){
        return match((String)value);
    }
}
